<?php


function gen_one_to_three()
{
    for ($i = 1; $i <= 3; $i++) {
        yield $i;
    }
}

$generater = gen_one_to_three();
foreach ($generater as $value) {
    echo "$value\n";
}

echo PHP_VERSION;




































